package com.example.anliku.entity;

import com.example.anliku.entity.clazzBody.clazzRetBody;
import com.example.anliku.entity.knowledgeBody.knowledgeRetBody;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "com-example-anliku-entity-Knowledge")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Knowledge {
    /**
     * 知识点id
     */
    @ApiModelProperty(value = "知识点id")
    private Integer knowledgeId;

    /**
     * 知识点名称
     */
    @ApiModelProperty(value = "知识点名称")
    private String knowledgeName;

    public static Knowledge get(knowledgeRetBody requestBody) {
        return new Knowledge(null,requestBody.getKnowledgeName());
    }
}